Skip to content

Comments

Hw 10#7

Open
Andrew-Kochanov wants to merge 5 commits intomainfrom
hw_10
Open

Hw 10#7
Andrew-Kochanov wants to merge 5 commits intomainfrom
hw_10

Conversation

@Andrew-Kochanov
Copy link
Owner

DFS

Comment on lines +32 to +37
g = Graph([1, 2, 3], [(1, 3), (2, 3), (2, 1)])

a = g.dfs()
b = list(iter(g))
print(a, b)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это последняя домашка курса. Как можно было не научиться прятать такое за if __name__ == "__main__" хотя бы?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants